package com.kfyang.manualgear.dao;

import com.kfyang.manualgear.annotation.Dao;
import com.kfyang.manualgear.annotation.crud.Construct;
import com.kfyang.manualgear.annotation.crud.Param;
import com.kfyang.manualgear.annotation.crud.Query;
import com.kfyang.manualgear.entity.PlainEntity;

@Dao
public interface ParamDao {
    @Query(col = {"id", "name", "password", "image_url", "role"},
        value = "from plain where id = {uid}")
    @Construct("plainCt")
    PlainEntity selectParam(@Param("uid") int id);
}
